package models;

import javax.persistence.Entity;
import javax.persistence.Id;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class Duree extends Model{
	
	@Required
	public String duree;
	
	@Required
	public int minutes;
	
	public Duree(String duree, int minutes){
		this.duree=duree;
		this.minutes=minutes;
	}
	
	public String toString(){
		return duree;
	}
}
